package com.zjj.edu.system.mapper;


import java.util.List;

import com.zjj.edu.system.domain.SysApplication;

/**
 * 应用管理数据层
 */
public interface SysApplicationMapper {
	
    /**
     * 列表分页
     *
     * @param application
     * @return
     */
    public List<SysApplication> selectApplicationList(SysApplication application);

    /**
     * 新增
     *
     * @param application
     * @return
     */
    public int insertApplication(SysApplication application);

    /**
     * 修改
     *
     * @param application
     * @return
     */
    public int updateApplication(SysApplication application);

    /**
     * 根据编码查询
     *
     * @param appCode
     * @return
     */
    public SysApplication selectSysApplicationByAppCode(String appCode);

    /**
     * 根据主建ID删除
     *
     * @param appCode
     * @return
     */
    public boolean deleteApplicationByCode(String appCode);

    /**
     * 
     * @param appCode
     * @return
     */
    public int checkAppCodeUnique(String appCode);
    
    /**
     * 
     * @param tenantCode
     * @return
     */
    public List<SysApplication> selectApplicationsByTenantCode(String tenantCode);

    /**
     * 
     * @return
     */
    List<SysApplication> selectApplicationsTenant();

    /**
     * 
     * @return
     */
    public List<SysApplication> getSysApplications();
}
